package com.itheima.jicheng3;

public class Demo01 {

    public static void main(String[] args) {
        Zi zi = new Zi();
       // zi.show();
        Fu.dance();
        Zi.dance();
    }
}

class Fu{
    public void sing(){}
    private void show(){}
    public static void dance(){
        System.out.println("父类的dance");
    }
    void rap(){

    }
    protected  void basketball(){}
}
class Zi extends Fu{
    @Override
    public void sing(){}
    //@Override 私有方法不能重写
    private void show(){}
    //@Override
    public static void dance(){
        System.out.println("子类的dance");
    }

    @Override
    protected void rap() {
        super.rap();
    }

    @Override
    public void basketball() {
        super.basketball();
    }
}
